<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="body-main">
    <!--生产人员 start-->
    <div class="finan-panel">
        <div class="finan-tit">
            <b>协单人员</b>
        </div>
        <div class="panel-main">
            <table class="dggui-table cell-border table-form">
                <thead>
                <tr>
                    <th>姓名</th>
                    <th>角色</th>
                    <th>所属团队</th>
                    <th>最近生产节点/操作</th>
                </tr>
                </thead>
                <tbody>
                <c:if test="${!empty order.flowUserName}">
                    <tr>
                        <td>${order.flowUserName}</td>
                        <td>流程人员</td>
                        <td>${order.flowUserOrgName}</td>
                        <td>${order.latestEndNodeName}</td>
                    </tr>
                </c:if>
                <c:if test="${empty order.flowUserName}">
                    <tr>
                        <td colspan="4" style="text-align: center">没有数据</td>
                    </tr>
                </c:if>
                <c:forEach var="flowUser" items="${flowUserList}">
                    <tr>
                        <td>${flowUser.assistUserName}</td>
                        <td>协单人员</td>
                        <td>${flowUser.assistUserOrgName}</td>
                        <td>${flowUser.latestEndNodeName}</td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
    <div class="finan-panel">
        <div class="finan-tit">
            <b>人员变更记录</b>
        </div>
        <div class="panel-main">
            <table class="dggui-table cell-border table-form">
                <thead>
                <tr>
                    <th>姓名</th>
                    <th>所属团队</th>
                    <th>变更类型</th>
                    <th>操作人</th>
                    <th>操作时间</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="recordsUser" items="${recordsUserList}">
                    <tr>
                        <td>${recordsUser.beOperaterName}</td>
                        <td>${recordsUser.beOperaterOrgName}</td>
                        <td>
                            <c:if test="${recordsUser.operateType == '1'}">
                                新增
                            </c:if>
                            <c:if test="${recordsUser.operateType == '5'}">
                                分配
                            </c:if>
                            <c:if test="${recordsUser.operateType == '9'}">
                                接收
                            </c:if>
                            <c:if test="${recordsUser.operateType == '10'}">
                                退回
                            </c:if>
                            <c:if test="${recordsUser.operateType == '12'}">
                                转单
                            </c:if>
                            <c:if test="${recordsUser.operateType == '13'}">
                                移交
                            </c:if>
                            <c:if test="${recordsUser.operateType == '15'}">
                                添加协单人员
                            </c:if>
                            <c:if test="${recordsUser.operateType == '16'}">
                                删除协单人员
                            </c:if>
                        </td>
                        <td>${recordsUser.operaterName}</td>
                        <td><fmt:formatDate value="${recordsUser.operateTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
    <!--生产人员 end-->
</div>
